#pragma once

#include <vector>
#include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>
#include <iostream>
#include <cstdlib>
#include <ctime>
#include <sstream>
#include <string>
#include <utility>
#include <cmath>
#include "RixMath.h"

#pragma warning(disable : 4018)

extern sf::RenderWindow app;
extern sf::Sprite digits[10];
extern sf::Sprite score_spr;
extern sf::Sprite level_spr;
extern sf::Music Music;
extern std::vector<std::pair<sf::SoundBuffer,std::string> > Sounds; 
extern std::vector<sf::Sound> Players;
extern bool forceClosed;
extern int score;
extern sf::Image leaveImage;

void directToVector(sf::Sprite &sprite, sf::Vector2f vector, bool rotate = true);
void drawScore(int score, int width, int leftBorder);
void drawLevel(int score, int width, int rightBorder);
bool setupMusic();
bool menu();
void playSound(std::string name);